package com.sunday.common.sentinel.study.e6_Nacos;

import com.alibaba.cloud.sentinel.SentinelProperties;
import com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration;
import com.alibaba.cloud.sentinel.custom.SentinelDataSourceHandler;
import com.alibaba.cloud.sentinel.datasource.config.AbstractDataSourceProperties;
import com.alibaba.csp.sentinel.datasource.AbstractDataSource;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

/**
 * http://sentinelguard.io/zh-cn/docs/dynamic-rule-configuration.html
 * {@link SentinelDataSourceHandler#afterSingletonsInstantiated()}
 * {@link SentinelDataSourceHandler#parseBeanDefinition(AbstractDataSourceProperties, String)}
 * {@link SentinelDataSourceHandler#registerBean(AbstractDataSourceProperties, String)}
 * {@link AbstractDataSourceProperties#postRegister(AbstractDataSource)}
 * {@link SentinelAutoConfiguration#sentinelDataSourceHandler(DefaultListableBeanFactory, SentinelProperties, Environment)}
 */
@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
